package com.pig4cloud.pig.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.admin.api.entity.NewsList;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface NewsListMapper extends BaseMapper<NewsList> {

	int getByUrlHash(Integer urlHash);

	List<NewsList> selectRamdom(Map map);

	int batchNewsInsert(List<NewsList> newsList);
}
